package com.bydq.patrolsystem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bydq.patrolsystem.entity.PsUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
public interface PsUserService extends IService<PsUser> {

    boolean checkLogin(String username, String password, Model model);

    PsUser getUserByCode(String username);

    String ordinaryCheckAndUpdate(PsUser user, String password, String repassword, HttpSession session);

    IPage<PsUser> selectPageByEditions(Integer currentPage, Integer pageSize, String userName, String userStatus);

    boolean userCodeExist(String userCode);

    boolean setUserStatus(Integer id, Integer start);
}
